//
//  MainViewController.h
//  PhotoBase
//
//  Created by Alec Flett on 11/16/09.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//

#import "FlipsideViewController.h"
#import "CocoaTouch/FreebaseSuggest.h"

@interface MainViewController : UIViewController 
<FlipsideViewControllerDelegate, 
UIImagePickerControllerDelegate, 
UINavigationControllerDelegate,
UIActionSheetDelegate,
FreebaseSuggestDelegate> {
    
    UIImageView *_currentImage;
    NSDictionary *_topic;
    UIButton* _topicButton;
    UIButton* _photoButton;
    
    UIView* _progressView;
    UILabel* _progressLabel;
    
    NSString *_topicId;
    UIImage *_image;
}

@property(nonatomic, retain) IBOutlet UIImageView *currentImage;
@property(nonatomic, retain) IBOutlet UIButton* topicButton;
@property(nonatomic, retain) IBOutlet UIButton* photoButton;

@property(nonatomic, retain) IBOutlet UIView* progressView;
@property(nonatomic, retain) IBOutlet UILabel* progressLabel;

@property(nonatomic, retain) UIImage* image;
@property(nonatomic, retain) NSDictionary* topic;

- (IBAction)showInfo;

- (IBAction)startChoosePicture;
- (IBAction)chooseTopic;
- (IBAction)upload;
- (void)uploadLoggedIn;


- (void)usePicture:(UIImagePickerControllerSourceType)sourceType;

- (void)showProgress:(NSString*)msg;
- (void)hideProgress;

- (void)useImage:(UIImage*)image;

@end
